package cn.gene.timeyan.pojo.article.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 鏂囩珷璇勮?淇℃伅
 * </p>
 *
 * @author LWG
 * @since 2022-07-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("arms_comment")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "comment_id", type = IdType.AUTO)
    private Long commentId;

    /**
     * 璇勮?鑰匢D
     */
    private Long commenterId;

    /**
     * 琚?瘎璁轰汉ID
     */
    private Long byCommentId;

    /**
     * 甯栧瓙ID
     */
    private Long articleId;

    /**
     * 璇勮?鑰呮槸鍚︿负甯栧瓙浣滆?鏍囪瘑锛?鍚?1鏄?級
     */
    private String isAuthor;

    /**
     * 鍐呭?
     */
    private String commentContent;

    /**
     * 璇勮?鐘舵?锛?涓嶆樉绀恒?1鏄剧ず
     */
    private String state;

    /**
     * 鍥炲?鏁
     */
    private Integer replayNum;

    /**
     * 鐐硅禐鏁
     */
    private Integer likeNum;

    /**
     * 鍒涘缓鏃堕棿
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 淇?敼鏃堕棿
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
